using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class 迷宫Move : MonoBehaviour
{
    public float walkspeed;
    public float Xmove;
    public float Zmove;
    // Start is called before the first frame update
    void move()
    {
        Vector3 force = new Vector3(0, 3, 0);
        Xmove = Input.GetAxis("Horizontal") * walkspeed * Time.deltaTime;
        Zmove = Input.GetAxis("Vertical") * walkspeed * Time.deltaTime;
        Vector3 momement = new Vector3(Xmove, 0, Zmove);
        transform.Translate(momement);
    }
    private void Update()
    {
        move();
    }
}
